<?php if(!empty($resultados)): ?>
<table cellpadding="0" cellspacing="0" border="0" class="dTable">
    <thead>
        <tr>
            <th>Codigo</th>
            <th>Producto</th>
            <th>Alto</th>
            <th>Peso</th>                                
        </tr>
    </thead>
    <tbody>
        <tr>
            <?php $i = 1;
            foreach ($resultados as $r):
                ?>                    
                <td><?php echo $r['Cortestubo']['codigo']; ?></td>
                <td><?php echo $r['Tubo']['nombre']; ?></td>
                <td><?php echo $r['Cortestubo']['alto']; ?></td>
                <td><?php echo $r['Cortestubo']['peso']; ?></td>                                    
            </tr>

<?php endforeach; ?>                
    </tbody>
</table>
<?php else: ?>
<h1>No se econtraron resultados</h1>
<?php endif; ?>


